//
//  CommunityMainViewCtrl.m
//  DogeLegs
//
//  Created by 宋华 on 2017/8/15.
//  Copyright © 2017年 宋华. All rights reserved.
//

#import "CommunityMainViewCtrl.h"
#import "CommunityViewCtrl.h"

@interface CommunityMainViewCtrl ()
@property (weak, nonatomic) IBOutlet UIButton *CommunityBtn;
- (IBAction)gotoCommunity:(id)sender;

@end

@implementation CommunityMainViewCtrl

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidLayoutSubviews {
    [super viewDidLayoutSubviews];
    setBorder(self.CommunityBtn, 1.0f, [UIColor redColor].CGColor);
    setCornerRadius(self.CommunityBtn, self.CommunityBtn.width/2.0f);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - button 事件
- (IBAction)gotoCommunity:(id)sender {
    CommunityViewCtrl *com = [[CommunityViewCtrl alloc] initWithNibName:@"CommunityViewCtrl" bundle:nil];
    [self.navigationController pushViewController:com animated:YES];
}
@end
